package com.itheima.dao.impl;

import com.itheima.dao.Dao;
import com.itheima.domain.User;

public class DaoImpl implements Dao {
    @Override
    public User login(String username, String password) {
        User user = null;
        if("admin".equals(username)&&"123456".equals(password)){
            user= new User();
            user.setUsername(username);
            user.setPassword(password);
        }
        return user;
    }
}
